import random
num = random.randint(1,10)
guess_num = int(input("请输入你要猜的数字"))
if num != guess_num:
    print("不对，再猜一次：")
    guess_num = int(input("请输入你要猜的数字"))
if num != guess_num:
    print("不对，再次猜一次:")
    guess_num = int(input("请输入你要猜的数字"))
if  num != guess_num:
    print("不对，再猜最后一次")
    guess_num = int(input("请输入你要猜的数字"))
if guess_num != num:
    print(f"sorry,全部猜错啦， 我想的是，{num}")
if guess_num == num:
    print("你做对了")